package com.aaa.day1105.third.demo;

import java.text.ParseException;
import java.text.SimpleDateFormat;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月06日10:39
 */
public class Test2 {
    public static void main(String[] args) {

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println(simpleDateFormat);

        for (int i = 0; i < 10; i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    try {
                        System.out.println(simpleDateFormat.parse("2222-10-10"));
                    } catch (ParseException e) {
                        e.printStackTrace();
                    }
                }
            }).start();
        }
    }
}
